package graph.group.zhangtao.guider;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ListView;

import graph.group.zhangtao.guider.utils.MySettingsAndTools;
import graph.group.zhangtao.guider.getter.MainIndexJsonGetter;

public class ListActivity extends AppCompatActivity {

    // Used to load the 'native-lib' library on application startup.
    static {
        System.loadLibrary("native-lib");
    }



    private ListView itemList;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_list);

        itemList =(ListView)findViewById(R.id.itemList);
        init();
    }

    private void init(){
        new MainIndexJsonGetter(itemList, MySettingsAndTools.getIndexPath(),this).execute();
    }



    /**
     * A native method that is implemented by the 'native-lib' native library,
     * which is packaged with this application.
     */
    public native String stringFromJNI();
}
